import request from "../utils/request"

export function GetBuildingList(params){
    return request.get("/building",{params});
}

// 新增
export function addBuilding(data){
    return request.post('/building',data)
}

// 编辑
export function editBuilding(id,data){
    return request.put(`/building/${id}`,data)
}

// 删除
export function delBuilding(id){
    return request.delete(`/building/${id}`)
}